package com.otp.service;

import com.otp.pojo.entity.Resource;
import com.otp.pojo.request.resource.ResourceCreateRequest;
import com.otp.pojo.request.resource.ResourceUpdateRequest;
import java.util.List;

public interface ResourceService {
    List<Resource> list();
    List<Resource> listByCategory(String category);
    Resource getById(Long id);
    Resource create(ResourceCreateRequest request);
    Resource update(ResourceUpdateRequest request);
    void delete(Long id);
}